package com.airnews.ticket;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import android.app.Application;

/**
 * 
 * @author luoxz
 */
public class ApplicationContext extends Application {
	
	private HashMap<String, Object> paramMap = new HashMap<String, Object>();
	
	@Override
	public void onCreate() {
		
	}

	@Override
	public void onTerminate() {
		
	}


	@Override
	public void onLowMemory() {
		
	}
	
	/**
	 * 添加参数
	 * @param key
	 * @param value
	 */
	public void putList(String key, List value) {
		paramMap.put(key, value);
	}

	/**
	 * 获取参数
	 * @param key
	 * @return
	 */
	public List getList(String key) {
		return (List)paramMap.get(key);
	}
	
	/**
	 * 添加参数
	 * @param key
	 * @param value
	 */
	public void putMap(String key, Map value) {
		paramMap.put(key, value);
	}

	/**
	 * 获取参数
	 * @param key
	 * @return
	 */
	public Map getMap(String key) {
		return (Map)paramMap.get(key);
	}
}
